#define _CRT_SECURE_NO_WARNINGS 1
#include"stdio.h"
#include"Stack.h"
#include"Queue.h"
void TestStack1()
{
	ST st;
	STInit(&st);
	STPush(&st, 1);
	STPush(&st, 2);
	printf("%d ", STTop(&st));
	STPop(&st);

	STPush(&st, 3);
	STPush(&st, 4);
	while (!STEmpty(&st))
	{
		printf("%d ", STTop(&st));
		STPop(&st);
	}
	STDestroy(&st);
	
}

void TestQueue()
{
	Queue q;
	QueueInit(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);

	//printf("%d ", QueueFront(&q));
	//QueuePop(&q);

	QueuePush(&q, 3);
	QueuePush(&q, 4);

	printf("Size: %d\n", QueueSize(&q));

	while (!QueueEmpty(&q))
	{
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}
	printf("\n");

	QueueDestroy(&q);
}
int main()
{
	TestStack1();
	//TestQueue();
	return 0;
}